package com.caigou.modules.service.adapter

import com.caigou.comm.base.utils.ImageLoader
import com.caigou.modules.service.R
import com.caigou.modules.service.baen.PlatformItemBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/11/10
 */
class PlatformItemAdapter(dataset: MutableList<PlatformItemBean>) : BaseQuickAdapter<PlatformItemBean, BaseViewHolder>(R.layout.item_platform_list, dataset) {
    override fun convert(holder: BaseViewHolder, item: PlatformItemBean) {
        ImageLoader.load(context, item.icon, holder.getView(R.id.item_platform_iv_icon))
    }
}